package com.example.pubsub;

public class SMSNotificationListener implements EventListener {
    private String phoneNumber;

    public SMSNotificationListener(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    @Override
    public void onEvent(Event event) {
        System.out.println("发送短信通知到 " + phoneNumber + ": " + event.getType() + " - " + event.getMessage());
    }
}
